package models

import "gorm.io/gorm"

// todo:直播表
type BroudCast3 struct {
	gorm.Model
	AnchorName    string `gorm:"type:varchar(20)"`  //主播名称
	AnchorTitle   string `gorm:"type:varchar(20)"`  //直播间标题
	AnchorSn      string `gorm:"type:varchar(8)"`   //直播间号
	PushMessage   string `gorm:"type:varchar(255)"` //推流
	SowingMessage string `gorm:"type:varchar(255)"` //播流
}

// todo:直播间表
type AnchorList struct {
	gorm.Model
	AnchorId int `gorm:"type:int(20)"` //主播ID
	Userid   int `gorm:"type:int(20)"` //用户ID
}

// todo:回放表
type LookCast struct {
	gorm.Model
	AnchorId  int    `gorm:"type:int(20)"`      //主播ID
	CastTime  int    `gorm:"type:int(20)"`      //开播时间
	VideoTime int    `gorm:"type:int(20)"`      //直播时长
	VideoSrc  string `gorm:"type:varchar(255)"` //回放视频地址
}

// todo:弹幕表
type Barrage3 struct {
	gorm.Model
	GroupId       int    `gorm:"type:int(20)"`      //直播间ID
	Userid        int    `gorm:"type:int(20)"`      //用户ID
	VideoId       int    `gorm:"type:int(20)"`      //视频ID
	EpisodesCount int    `gorm:"type:int(20)"`      //剧集
	Content       string `gorm:"type:varchar(100)"` //弹幕信息
}
